<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

   <div class="one">
    <div class="two">1</div>
    <div class="two">2</div>
    <div class="two">3</div>
    <div class="two">4</div>
    <div class="two">5</div>
   </div>

    <style>
        .one {
            width:1000px;
            height: 300px;
            background-color: gray;
            display: flex;
            justify-content:space-around;
            align-items: center;
        }
        .two {
            width: 150px;
            height: 100px;
            background-color: green;
        }
        
        *{
            box-sizing: border-box;
        }
        /* div { */
/*             
            width: 500px;
            height: 300px;
            background-color: gray;
            margin-top: 50px; */
            /* border: red 20px solid; */
            /* 边框可以分开设置 */
            /* border-left: red 20px solid;
            border-right: green 20px dotted;
            border-top: blue 20px dashed;
            border-bottom: orange 20px solid; */
            /* padding-left: 20px;
            padding-right:20px;
            padding-top: 50px; */
            /* 上下设置 30px 左右设置 20px */
            /* padding: 30px 20px; */
            /* 上右下左 顺时针*/
            /* padding: 10px 20px 30px 40px; */
        /* } */
        </style>
</body>
</html>